package com.hospital.auth.feign;

import com.hospital.common.domain.system.Doctor;
import com.hospital.common.domain.system.UserInfo;
import com.hospital.common.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author：sjc
 * @Description:
 * @name：SystemService
 * @Date：2024/10/18 19:38
 */
@FeignClient(value = "elt-system")
public interface SystemService {
    /**
     * 查询用户
     * @param patientVo
     * @return
     */
    @PostMapping("user/findUserList")
    public R<UserInfo> findUserList(@RequestBody UserInfo patientVo);

    /**
     * 查询用户名
     * @param patientName
     * @return
     */
    @PostMapping("user/selectUserName")
    public R<UserInfo> selectUserName(@RequestBody String patientName);

    /**
     * 注册
     * @param patientVo
     * @return
     */
    @PostMapping("user/register")
    public R register(@RequestBody UserInfo patientVo);


    /***
     * 查询医生或者管理员信息
     */
    @PostMapping("doctor/getDoctorInfo")
    public R<Doctor> getDoctorInfo(Doctor doctor);

    /**
     * 医生注册
     * @param doctor
     */
    @PostMapping("doctor/doctorRegister")
    R doctorRegister(@RequestBody Doctor doctor);
}
